package com.tamtamy.jtta.data.xml;

import org.w3c.dom.Document;

import com.tamtamy.jtta.data.Network;
import com.tamtamy.jtta.utility.XMLUtility;

public class XMLNetwork extends Network {

	public XMLNetwork(Document xmlDocument) {
		this.id = XMLUtility.getString(xmlDocument, "id");
		this.network = XMLUtility.getString(xmlDocument, "name");
		this.creationDate = XMLUtility.getDate(xmlDocument,"creationDate");
		this.name = XMLUtility.getString(xmlDocument,"name");
		this.userCounter = XMLUtility.getString(xmlDocument, "userCounter");
		this.countentCounter = XMLUtility.getString(xmlDocument, "contentCounter");
		this.permalink = XMLUtility.getString(xmlDocument, "permalink");
	}
	
}
